<template>
    <div class="container">
        <p class="tips"><i class="point-icon"></i><span>最近一周的关键词搜索排行</span></p>
        <!-- <el-row>
            <el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
            <el-col :span="8"><div class="grid-content bg-purple-light"></div></el-col>
            <el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
        </el-row> -->
        <div class="list">
            <div class="search-rank-list search-rank-list1">
                <table width="100%">
                    <tr>
                        <th>序号</th>
                        <th>关键词</th>
                        <th>作品数量</th>
                    </tr>
                    <tr v-for="(item,index) in tableData" :key="index">
                        <td>{{index + 1}}</td>
                        <td>{{item.name}}</td>
                        <td>{{item.value}}</td>
                    </tr>
                </table>
            </div>
            <div class="search-rank-list search-rank-list2">
                <table width="100%">
                    <tr>
                        <th>序号</th>
                        <th>关键词</th>
                        <th>作品数量</th>
                    </tr>
                    <tr v-for="(item,index) in tableData" :key="index">
                        <td>{{10 + index + 1}}</td>
                        <td>{{item.name}}</td>
                        <td>{{item.value}}</td>
                    </tr>
                </table>
            </div>
            <div class="search-rank-list search-rank-list3">
                <table width="100%">
                    <tr>
                        <th>序号</th>
                        <th>关键词</th>
                        <th>作品数量</th>
                    </tr>
                    <tr v-for="(item,index) in tableData" :key="index">
                        <td>{{20 + index + 1}}</td>
                        <td>{{item.name}}</td>
                        <td>{{item.value}}</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    data() {
        return {
            tableData: [
                {name: '航拍中国', value: 233},
                {name: '航拍中国', value: 233},
                {name: '航拍中国', value: 233},
                {name: '航拍中国', value: 233},
                {name: '航拍中国', value: 233},
                {name: '航拍中国', value: 233},
                {name: '航拍中国', value: 233},
                {name: '航拍中国', value: 233},
                {name: '航拍中国', value: 233},
                {name: '航拍中国', value: 233},
            ]
        }
    },
}
</script>
<style scoped>
    td,th {
        text-align: center;
        height: 28px;
        line-height: 28px;
    }
    .container {
        width: 1180px;
        padding: 10px;
        height: 100%;
        margin: 0 auto;
        border-radius: 5px;
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    }
    .tips {
        padding: 20px 0 30px 0;
        font-size: 14px;
    }
    .point-icon {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 10px;
        background: #1bd8b8;
        margin-right: 5px;
    }
    .list {
        font-size: 0;
    }
    .search-rank-list {
        width: 28%;
        background: #fff;
        display: inline-block;
        border-radius: 5px;
        font-size: 16px;
    }
    .search-rank-list ul li:first-child {
        font-size: 16px;
    }
    .search-rank-list li {
        text-align: center;
        margin: 15px;
    }

    .search-rank-list2 {
        margin: 0 8%;
    }


    .el-row {
        margin-bottom: 20px;
    }
    .el-row:last-child {
        margin-bottom: 0;
    }
    .el-col {
        border-radius: 4px;
    }
    .bg-purple-dark {
        background: #99a9bf;
    }
    .bg-purple {
        background: #d3dce6;
    }
    .bg-purple-light {
        background: #e5e9f2;
    }
    .grid-content {
        border-radius: 4px;
        min-height: 36px;
    }
    .row-bg {
        padding: 10px 0;
        background-color: #f9fafc;
    }
</style>